#include<stdio.h>
#include<math.h>
int main() {
	int x,y;
	char c;
	scanf("%d %c", &y,&c);
	x = round((float)y / 2);
	for (int i = 0; i < x; i++) {
		if (i == 0 || i == x - 1)
		{
			for (int j = 0; j < y; j++) {
				printf("%c", c);
			}
			printf("\n");
		}
		else
		{
			for (int j = 0; j < y; j++)
			{
				if (j == 0 || j == y - 1) {
					printf("%c", c);
				}
				else
				{
					printf(" ");
				}
				
			}
			printf("\n");
		}
		
	}
	return 0;
}